package com.nk.mapper;

import com.nk.domain.Employee;
import com.nk.domain.QueryVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Employee record);

    Employee selectByPrimaryKey(Long id);

    List<Employee> selectAll(QueryVo vo);

    int updateByPrimaryKey(Employee record);

    void updateStateByKey(long id);

    Employee selectByName(String username);

    void deleteRoleById(Long id);

    void insertEmployeeAndRole(@Param("eid") Long eid, @Param("rid") Long rid);

    List<String> getRoleNameByEid(Long id);

    List<String> getPermissionByEid(Long id);
}